/* 智慧医院平台样式 */
.container {
  padding: 10px;
  margin-top: 10px;
  background-color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* 顶部状态栏 */
.statusBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.time {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.title {
  font-size: 16px;
  font-weight: 600;
  margin: 15px;
}

.statusIcons {
  display: flex;
  gap: 8px;
}

.icon {
  font-size: 14px;
}

/* 健康生活横幅 */
.banner {
  width: 100%;
  padding: 5px;
  border-radius: 20px;
}

.bannerContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.bannerText h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.bannerIcons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.syringe {
  font-size: 24px;
}

.heart {
  font-size: 16px;
}

.doctorIllustration {
  position: relative;
}

.doctor {
  font-size: 48px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* 快速访问按钮 */
.quickAccess {
  display: flex;
  gap: 12px;
  margin: 10px;
}

.quickButton {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 26px;
  display: flex;
  
}

.quickButton:hover {
  transform: translateY(-2px);
}

.quickButton:first-child {
  background: linear-gradient(135deg, #85beee, #4787c8);
  color: white;
}

.quickButton:last-child {
  background: linear-gradient(135deg, #7fecfb, #4dc9d6);
  color: white;
}

.buttonIcon {
  font-size: 24px;
  font-weight: bold;
}

.buttonText {
  flex: 1;
}

.buttonTitle {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.buttonSubtitle {
  font-size: 12px;
  opacity: 0.8;
}

/* 公告栏 */
.announcement {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  margin: 0 16px 16px;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.announcementLeft {
  display: flex;
  align-items: center;
  gap: 8px;
}

.announcementLabel {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.announcementText {
  font-size: 14px;
  color: #333;
}

.moreLink {
  color: #2196F3;
  font-size: 14px;
  cursor: pointer;
}

/* 服务分类标签 */
.serviceTabs {
  display: flex;
  margin: 0 16px 5px;
  border-radius: 8px;
  overflow: hidden;
}

.tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.activeTab {
  color: #2196F3;
  border-bottom-color: #2196F3;
  background: #f8f9ff;
}

/* 服务图标网格 */
.serviceGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 10px 15px;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.serviceItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8f9ff;
}

.serviceItem:hover {
  background: #e3f2fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.serviceIcon {
  font-size: 24px;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

.serviceItem:hover .serviceIcon {
  transform: scale(1.1);
}

.serviceName {
  font-size: 12px;
  color: #333;
  text-align: center;
  font-weight: 500;
}

/* 健康资讯 */
.healthInfo {
  background: #fff;
  margin: 0 16px 80px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.healthInfoHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.healthInfoHeader h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.moreLink {
  color: #999;
  font-size: 14px;
  cursor: pointer;
}

.newsList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsCard {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsCard:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.newsContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsTitle {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  font-weight: 500;
  margin-bottom: 4px;
}

.newsCategory {
  color: #2196F3;
  font-size: 12px;
  font-weight: 500;
}

.newsStats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #999;
}

.likes, .views {
  display: flex;
  align-items: center;
  gap: 4px;
}

.newsThumbnail {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.newsThumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.smartServiceButton {
  background: #2196F3;
  color: white;
  padding: 12px 16px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  animation: pulse 2s infinite;
  white-space: nowrap;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* 底部导航栏 */
.bottomNav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navItem {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.navItem:hover {
  background: #f5f5f5;
}

.activeNav {
  color: #2196F3;
}

.navIcon {
  font-size: 20px;
  margin-bottom: 4px;
}

.navLabel {
  font-size: 10px;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .serviceGrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
  }
  
  .serviceItem {
    padding: 8px;
  }
  
  .serviceIcon {
    font-size: 20px;
  }
  
  .serviceName {
    font-size: 5px;
  }
  
  .banner {
    padding: 16px;
  }
  
  .bannerText h2 {
    font-size: 16px;
  }
  
  .doctor {
    font-size: 40px;
  }
}

@media (max-width: 320px) {
  .quickAccess {
    flex-direction: column;
    gap: 8px;
  }
  
  .quickButton {
    padding: 12px;
  }
  
  .serviceGrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
  }
}
